<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category   default_default
 * @package    Mage
 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */
?>
<?php //$this->addAttribute('pricedescription') ?>
<div class="title">
	<?php 
	$_productCollection=$this->getProductCollection();
	//$nowCategory = $this->getNowCategory();
	echo "<h1>Product</h1>";
	?>
	<div class="pagebar">
	<?php echo $this->getToolbarHtml() ?>
	</div>
	<div class="clearboth"></div>
</div>
<?php if(!$_productCollection->count()): ?>
<div class="padder">
<div class="note-msg">
    <?php echo $this->__('There are no products matching the selection.'); ?>
</div>
</div>
<?php else: ?>

<?php //echo $this->getToolbarHtml() ?>
<?php // Grid Mode ?>
<div class="product-list" id="pro-kitchen-creative"> <!-- the class name will change to .listing-type-cell if viewing in list mode -->
<?php $_collectionSize = $_productCollection->count() ?>
    
	    <?php $i=0; foreach ($_productCollection as $_product): ?>
	    <?php if ($i++%3==0): ?>
	    <div class="pro the-first">
	    <?php else: ?>
	    <div class="pro">
	    <?php endif; ?>
	    	<h4><?php echo $this->htmlEscape($_product->getName()) ?></h4>
			<img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(186, 124); ?>" alt="<?php echo $this->htmlEscape($_product->getName()) ?>">
			<h2><?php echo $this->getPriceHtmlSimple($_product, true) ?><br><span><?php if($_product->getAttributeText('pricedescription')!='') echo $_product->getAttributeText('pricedescription'); else echo '&nbsp;' ?></span></h2>
			<a href="<?php echo $_product->getProductUrl(); ?>" class="more-info">MORE INFO</a>
	    </div>
    <?php endforeach ?>
</div>
<?php endif; ?>
<?php echo $this->getChildHtml('product_list1') ?>
<div class="clearboth"></div>
<div class="bottom-pagebar">
<div class="pagebar">
<?php echo $this->getToolbarHtml() ?>
</div>
</div>